package com.zml.rpc.comsumer.client;

import org.apache.curator.framework.CuratorFramework;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import java.util.ArrayList;
import java.util.List;

@Component
public class RpcClientManager {
    @Autowired
    private CuratorFramework curatorFramework;
    private List<RpcClient> rpcClientList = new ArrayList<>();
    @PostConstruct
    public void init() throws Exception {
        String path = "/rpc-demo";
        curatorFramework.getData().forPath(path);
    }
}
